package org.paybiz.model;

import java.io.Serializable;

/**
 * Description:
 * @author  LiChunming
 * @version V1.0 
 * @createDateTime：2010-10-19 上午10:19:27 
 * @Company: MSD. 
 * @Copyright: Copyright (c) 2010
 */
public class ResultDO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 8644845253519075019L;
	
	/**
	 *  结束0为成功1为失败,默认设置为失败
	 */
	private int result = 1;
	/**
	 * 错误编码
	 */
	private String errId= "";
	/**
	 * 错误原因
	 */
	private String  errMsg = "";
	/**
	 * 成功返回的信息
	 */
	private String info="";
	/**
	 *签名
	 */
	private String  hmac = "";
	
	public static ResultDO newInstance() {
	    return new ResultDO();
	}
	
	public int getResult() {
		return result;
	}
	public void setResult(int result) {
		this.result = result;
	}
	public String getErrMsg() {
		return errMsg;
	}
	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}
	public String getHmac() {
		return hmac;
	}
	public void setHmac(String hmac) {
		this.hmac = hmac;
	}
	public String getErrId() {
		return errId;
	}
	public void setErrId(String errId) {
		this.errId = errId;
	}
	public String getInfo() {
		return info;
	}
	
	public void setInfo(String info) {
		this.info = info;
	}

	@Override
	public String toString() {
		return "ResultDO [result=" + result + ", errId=" + errId + ", errMsg="
				+ errMsg + ", info=" + info + ", hmac=" + hmac + "]";
	}

}
